//平台属性相关的请求函数
import request from '@/utils/request'
//一级分类接口
export const reqC1 = ()=>request({url:`/admin/product/getCategory1`,method:'get'});

//二级分类接口
export const reqC2 = (category1Id)=>request({url:`/admin/product/getCategory2/${category1Id}`,method:'get'});

//三级分类接口
export const reqC3 = (category2Id)=>request({url:`/admin/product/getCategory3/${category2Id}`,method:'get'});


//获取分类属性与属性值接口
export const reqAttr = (category1Id,category2Id,category3Id)=>request({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'});



//添加属性|修改属性的接口

export const reqAddOrUpdateAttr = (data)=>request({url:`/admin/product/saveAttrInfo`,method:'post',data});


//删除某一个属性
export const reqDeleteAttr = (attrId)=>request({url:`/admin/product/deleteAttr/${attrId}`,method:'delete'});
